-
Notifications
You must be signed in to change notification settings - Fork 768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More refactoring #1853
More refactoring #1853
Conversation
dellaert
commented
Sep 29, 2024
- added eliminate as method of HGFG to test in isolation
- moved HBN test to right place
- added three "bougie" constructors that considerably simplify tests and later examples:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve modulo comments.
I like the new API but it would also be nice to have at least one test using the old API as a tutorial, aka "this is good, this new thing is better".
@@ -436,7 +435,7 @@ hybridElimination(const HybridGaussianFactorGraph &factors, | |||
*/ | |||
std::pair<HybridConditional::shared_ptr, std::shared_ptr<Factor>> // | |||
EliminateHybrid(const HybridGaussianFactorGraph &factors, | |||
const Ordering &frontalKeys) { | |||
const Ordering &keys) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This deviates from the naming scheme of GaussianFactorGraph
and other graphs, where it is frontalKeys
. Should we strive for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I’ll fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, no,I went back and looked at GFG and it's always just "keys". So I'll leave this to be consistent. frontal keys is a concept in conditionals, not in elimination. The keys we eliminate will become frontal keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh okay. I must have been mistaken then.
I’ll address the comments. But
|
Sure thing wrt the dividers. It's a nitpick anyway :) |
Interesting. I like to minimize includes since that helps cut down compilation time. Less header copying.
Fair. I was updating the code to examine the ordering, so decided to save a compilation cycle by making the edits. |